define(function(require,exports,module){
	var aw = require("ajaxwrapper");
	
	module.exports = {
		save: function(cParams,sCb){
			aw.saveOrUpdate("api/product/savepro",cParams,sCb);
		},
		query: function(cParams,sCb){
			aw.ajax({
				url: "api/product/query",
				data: cParams,
				success: sCb
			});

		},
		del: function(pk,sCb){
			aw.del("api/product/"+pk+"/delete",sCb);
		},
		search: function(cParams,sCb){
			aw.ajax({
				url: "api/product/search",
				data: cParams,
				success: sCb
			});
		}
	};
});